package sz.sz1;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Sz1Test {
    @Test
  public void Test1(){
      ApplicationContext context = new ClassPathXmlApplicationContext("sz1.xml");
      Hzw hzw = (Hzw) context.getBean("hzw");
      hzw.print();
      Zgl zgl = (Zgl) context.getBean("hywc");
      zgl.print();
  }
}
